package com.gtw.dto;

import com.gtw.modules.entity.TbCommodity;
import com.gtw.modules.entity.TbUser;

import java.io.Serializable;
import java.util.Date;

/** 个人团购信息
 * Created by wuye on 2018/3/15.
 */
public class TbGroupBuyDto implements Serializable{

    private static final long serialVersionUID = 1L;

    private Integer id;

    private TbCommodity tbCommodity;

    /**
     * 参与人数
     */
    private int num;

    /**
     * 价格
     */
    private float price;

    /**
     * 开团时间
     */
    private Date opentime;

    /**
     * 结束时间
     */
    private Date endtime;


    /**
     * 身份
     */
    private int identity;

    /**
     * 状态
     */
    private int status;

    /**
     * 参与的活动状态
     */
    private int isend;

    /**
     * 库存
     */
    private  int reserve;

    private TbUser user;

    public TbCommodity getTbCommodity() {
        return tbCommodity;
    }

    public void setTbCommodity(TbCommodity tbCommodity) {
        this.tbCommodity = tbCommodity;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public Date getOpentime() {
        return opentime;
    }

    public void setOpentime(Date opentime) {
        this.opentime = opentime;
    }

    public int getIdentity() {
        return identity;
    }

    public void setIdentity(int identity) {
        this.identity = identity;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public int getReserve() {
        return reserve;
    }

    public void setReserve(int reserve) {
        this.reserve = reserve;
    }

    public TbUser getUser() {
        return user;
    }

    public void setUser(TbUser user) {
        this.user = user;
    }

    public int getIsend() {
        return isend;
    }

    public void setIsend(int isend) {
        this.isend = isend;
    }
}
